#include <iostream>
using namespace std;

int division(int a,int b)
{
    if (b == 0)
        throw "division by zero";
    return a/b;
}
void fun()
{
    int a = 0, b = 0;
    cin >> a >> b;
    division(a,b);
}
int main()
{
    try
    {
        fun();
    }
    catch(const char* e)
    {
        cout <<e << endl;
    }
    catch(...)
    {
        cout << "unknow exception" << endl;
    }
    return 0;
}
